import { $html } from "../index"

export const getData = async (query?: Object) => {
  const res = await $html.get("/api/findAll", {
    params: {
      ...query
    }
  })
  return res
}

export const delBooks = async (query?: Object) => {
  const res = await $html.get("/api/delBooks", {
    params: {
      ...query
    }
  })
  return res
}